﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model.EntityModel;


namespace DataAccess
{
    public static class DischargeBallotDataAccess
    {
        //public static DischargeBallot InsertDischargeBallot(DischargeBallot dischargeBallot)
        //{
        //    BrigadaEntities context = new BrigadaEntities();
        //    context.AddToDischargeBallot(dischargeBallot);
        //    context.SaveChanges();
        //    return dischargeBallot;
        //}

        //public static DischargeBallot UpdateDeschageBallot(DischargeBallot dischargeBallot)
        //{
        //    BrigadaEntities context = new BrigadaEntities();
        //    var ballot = (from b in context.DischargeBallot
        //                  where b.Id == dischargeBallot.Id
        //                  select b).Single();
        //    ballot = dischargeBallot;
        //    context.SaveChanges();
        //    return ballot;
        //}

        //public static DischargeBallot GetComplaintById(long idDischargeBallot)
        //{
        //    BrigadaEntities context = new BrigadaEntities();
        //    var ballot = (from b in context.DischargeBallot
        //                     where b.Id == idDischargeBallot
        //                     select b).Single();
        //    return ballot;
        //}
    }
}
